<table class="datagrid">
  <thead class="datagrid">
    <tr>
      <th class="datagrid" width="10%">Type</th>
      <th class="datagrid" width="10%">Prefix</th>
      <th class="datagrid">Name</th>
      <th class="datagrid" width="10%">Last ID</th>
    </tr>
  </thead>
  <tbody class="datagrid">
<?php foreach($listDocumentTypesList as $listDocumentTypes): ?>
    <tr>
      <td>
        <?php echo $listDocumentTypes->getTypeTag()?>
      </td>
      <td>
        <?php echo $listDocumentTypes->getTypeid()?>
      </td>
      <td>
        <?php 
          echo 
            link_to(
              $listDocumentTypes->getTypeName(),
              'document_types/edit?iden='.$listDocumentTypes->getIden()
            )
        ?>
      </td>
      <td class="datagrid">
        <?php echo $listDocumentTypes->getLastId()?>
      </td>
    </tr>
<?php endforeach;?>
  </tbody>
</table>